package com.action;

import com.service.DepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DepAction {

    @Autowired
    private DepService depService;

    @RequestMapping("/search")
    public Page search(Integer depId, String depName,Integer page, Integer size)
    {
        return depService.search(depId,depName,page,size);
    }
}
